package com.air.ota.service.imp;


import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.air.common.service.imp.BaseServiceImp;
import com.air.ota.dao.InboundMsgDao;
import com.air.ota.mo.InboundMsg;
import com.air.ota.service.IInboundMsgService;
import com.air.ota.vo.MsgListCacheVO;

@Service("inboundMsgService")
public class InboundMsgServiceImp extends BaseServiceImp implements
		IInboundMsgService, InitializingBean {

	
	@Autowired
	InboundMsgDao inboundMsgMapper;
	
	@Override
	public void afterPropertiesSet() throws Exception {
		this.baseDao = inboundMsgMapper;
	}
	
	@Override
	public <T> T insert(T object) throws Exception{
		T po = super.insert(object);
		MsgListCacheVO.pushInboundMsg((InboundMsg)po);
		return po;
	}
	
}
